package com.java.userservice.service;

import com.java.common.model.Result;
import com.java.common.service.BaseService;
import com.java.userservice.model.User;
import com.java.userservice.model.dto.UserRoleDTO;
import org.springframework.web.multipart.MultipartFile;

public interface UserService extends BaseService<User> {

    Result login(User user);

    Result upload(MultipartFile file);

    Result listRole();

    Result listRoleByAdminId(Integer id);

    Result saveRole(UserRoleDTO userRoleDTO);
    /**
     * 返回技师用户
     * @return
     */
    Result userRole(User user);
}
